package com.ujiuye.controller;

import com.ujiuye.bean.Product;
import com.ujiuye.bean.QueryVO;
import com.ujiuye.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ProductController {

    @Autowired
    ProductService productService;

    //@PostMapping
    //@RequestMapping(value="",RequestMethod.POST)

    @GetMapping("/findProduct")
    public List<Product> findProduct(QueryVO queryVO){
        return productService.findProduct(queryVO);
    }

}
